package com.woniuxy.shop.service;

import java.util.List;

import com.woniuxy.shop.dao.DetailOrderDao;
import com.woniuxy.shop.entity.DetailOrder;
import com.woniuxy.shop.exception.DaoException;
import com.woniuxy.shop.exception.ServiceException;

/**
*@author 作者：
*version 创建时间：
*类说明：
*/
public class DetailOrderService {
	DetailOrderDao dod = new DetailOrderDao();
	
	/**
	 * 获取指定订单ID的详细订单
	 * @param orderid
	 * @return
	 */
	public List<DetailOrder> getDetailOrder(int orderid) {
		List<DetailOrder> dors = null;
		try {
			dors = dod.getAllDetailOrder(orderid);
		} catch (DaoException e) {
			throw new ServiceException("sql执行异常");
		}
		return dors;
	}
}
